/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import Objects.User;
import javax.ejb.Remote;

/**
 *
 * @author ntfsbk
 */
@Remote
public interface userBeanRemote {

    public boolean checkLogin(String userName, String Passwd) throws Exception;

    public boolean checkExistedUser(String userName) throws Exception;

    public boolean checkIsAssmin(String userName) throws Exception;

    public String checkIsBlock(String userName) throws Exception;

    public boolean insertNewUser(String userName, String passwd, String email, String gender, String birth) throws Exception;

    public boolean checkExistedEmail(String email) throws Exception;

    public int getUserIdByUserName(String userName) throws Exception;

    public User getUserInfoByUserId(int userId) throws Exception;

    public String getFileNameThumbnailOfAlbums(int albumId) throws Exception;

    public boolean updateGender(String gender, int userId) throws Exception;

    public boolean updateBirth(String birth, int userId) throws Exception;
    public boolean updatePass(String pass,int userId) throws Exception;
    public int getNumberOfAlbums(int userId) throws Exception;
    public int getNumberOfImages(int userId) throws Exception;
}
